var $atPageEnd = false;
var $lastPage = 0;
var $lastRev = 0;
-
+
function BaseDump( $infile ) {
$this->reader = new XMLReader();
$this->reader->open( $infile );
}
-
+
/**
* Attempts to fetch the text of a particular page revision
* from the dump stream. May return null if the page is
return null;
}
}
-
+
function debug( $str ) {
wfDebug( $str . "\n" );
//global $dumper;
//$dumper->progress( $str );
}
-
+
/**
* @access private
*/
$this->atEnd = true;
}
}
-
+
/**
* @access private
*/
$this->atPageEnd = true;
}
}
-
+
/**
* @access private
*/
$this->skipTo( 'text' );
return strval( $this->nodeContents() );
}
-
+
/**
* @access private
*/
}
return $this->close();
}
-
+
/**
* Shouldn't something like this be built-in to XMLReader?
* Fetches text contents of the current element, assuming
}
return $this->close();
}
-
+
/**
* @access private
*/